/*
 * Created on 15-Mar-2006
 *
 */
package com.fatsatsuma.email;

public interface ITemplateHandler {

	/**
	 * Sets the template to generate this email from
	 * 
	 * @param template
	 */
	public void setTemplate(IEmailTemplate template);

	/**
	 * Generates the email with the current context
	 * 
	 * @param context
	 * @return the generated email
	 */
	public IEmail generateEmail(IContext context);

	/**
	 * Method returns a context that this handler can use
	 * 
	 * @return
	 */
	public IContext getContext();

}
